/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.myapp.c0910g.entity;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author BachLe
 */
@Entity
@Table(name = "UserRadioCab")
@NamedQueries({
    @NamedQuery(name = "UserRadioCab.findAll", query = "SELECT u FROM UserRadioCab u"),
    @NamedQuery(name = "UserRadioCab.findByUrcid", query = "SELECT u FROM UserRadioCab u WHERE u.urcid = :urcid"),
    @NamedQuery(name = "UserRadioCab.findByURCName", query = "SELECT u FROM UserRadioCab u WHERE u.uRCName = :uRCName"),
    @NamedQuery(name = "UserRadioCab.findByURCPassword", query = "SELECT u FROM UserRadioCab u WHERE u.uRCPassword = :uRCPassword"),
    @NamedQuery(name = "UserRadioCab.findByURCContactPerson", query = "SELECT u FROM UserRadioCab u WHERE u.uRCContactPerson = :uRCContactPerson"),
    @NamedQuery(name = "UserRadioCab.findByURCDesignation", query = "SELECT u FROM UserRadioCab u WHERE u.uRCDesignation = :uRCDesignation"),
    @NamedQuery(name = "UserRadioCab.findByURCAddress", query = "SELECT u FROM UserRadioCab u WHERE u.uRCAddress = :uRCAddress"),
    @NamedQuery(name = "UserRadioCab.findByURCCity", query = "SELECT u FROM UserRadioCab u WHERE u.uRCCity = :uRCCity"),
    @NamedQuery(name = "UserRadioCab.findByURCMobile", query = "SELECT u FROM UserRadioCab u WHERE u.uRCMobile = :uRCMobile"),
    @NamedQuery(name = "UserRadioCab.findByURCTelephone", query = "SELECT u FROM UserRadioCab u WHERE u.uRCTelephone = :uRCTelephone"),
    @NamedQuery(name = "UserRadioCab.findByURCFaxNumber", query = "SELECT u FROM UserRadioCab u WHERE u.uRCFaxNumber = :uRCFaxNumber"),
    @NamedQuery(name = "UserRadioCab.findByURCEmail", query = "SELECT u FROM UserRadioCab u WHERE u.uRCEmail = :uRCEmail"),
    @NamedQuery(name = "UserRadioCab.findByURCExperience", query = "SELECT u FROM UserRadioCab u WHERE u.uRCExperience = :uRCExperience"),
    @NamedQuery(name = "UserRadioCab.findByURCDescription", query = "SELECT u FROM UserRadioCab u WHERE u.uRCDescription = :uRCDescription"),
    @NamedQuery(name = "UserRadioCab.findByURCStatus", query = "SELECT u FROM UserRadioCab u WHERE u.uRCStatus = :uRCStatus")})
public class UserRadioCab implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name = "URCID")
    private Integer urcid;
    @Column(name = "URCName")
    private String uRCName;
    @Column(name = "URCPassword")
    private String uRCPassword;
    @Column(name = "URCContactPerson")
    private String uRCContactPerson;
    @Column(name = "URCDesignation")
    private String uRCDesignation;
    @Column(name = "URCAddress")
    private String uRCAddress;
    @Column(name = "URCCity")
    private String uRCCity;
    @Column(name = "URCMobile")
    private String uRCMobile;
    @Column(name = "URCTelephone")
    private String uRCTelephone;
    @Column(name = "URCFaxNumber")
    private String uRCFaxNumber;
    @Column(name = "URCEmail")
    private String uRCEmail;
    @Column(name = "URCExperience")
    private String uRCExperience;
    @Column(name = "URCDescription")
    private String uRCDescription;
    @Column(name = "URCStatus")
    private Boolean uRCStatus;
    @JoinColumn(name = "RoleID", referencedColumnName = "RoleID")
    @ManyToOne
    private UserRole userRole;
    @JoinColumn(name = "ShipTypeID", referencedColumnName = "ShipTypeID")
    @ManyToOne
    private ShipType shipType;
    @JoinColumn(name = "PaymentTypeID", referencedColumnName = "PaymentTypeID")
    @ManyToOne
    private PaymentType paymentType;
    @OneToMany(mappedBy = "userRadioCab")
    private List<PaymentDetails> paymentDetailsList;

    public UserRadioCab() {
    }

    public UserRadioCab(Integer urcid) {
        this.urcid = urcid;
    }

    public Integer getUrcid() {
        return urcid;
    }

    public void setUrcid(Integer urcid) {
        this.urcid = urcid;
    }

    public String getURCName() {
        return uRCName;
    }

    public void setURCName(String uRCName) {
        this.uRCName = uRCName;
    }

    public String getURCPassword() {
        return uRCPassword;
    }

    public void setURCPassword(String uRCPassword) {
        this.uRCPassword = uRCPassword;
    }

    public String getURCContactPerson() {
        return uRCContactPerson;
    }

    public void setURCContactPerson(String uRCContactPerson) {
        this.uRCContactPerson = uRCContactPerson;
    }

    public String getURCDesignation() {
        return uRCDesignation;
    }

    public void setURCDesignation(String uRCDesignation) {
        this.uRCDesignation = uRCDesignation;
    }

    public String getURCAddress() {
        return uRCAddress;
    }

    public void setURCAddress(String uRCAddress) {
        this.uRCAddress = uRCAddress;
    }

    public String getURCCity() {
        return uRCCity;
    }

    public void setURCCity(String uRCCity) {
        this.uRCCity = uRCCity;
    }

    public String getURCMobile() {
        return uRCMobile;
    }

    public void setURCMobile(String uRCMobile) {
        this.uRCMobile = uRCMobile;
    }

    public String getURCTelephone() {
        return uRCTelephone;
    }

    public void setURCTelephone(String uRCTelephone) {
        this.uRCTelephone = uRCTelephone;
    }

    public String getURCFaxNumber() {
        return uRCFaxNumber;
    }

    public void setURCFaxNumber(String uRCFaxNumber) {
        this.uRCFaxNumber = uRCFaxNumber;
    }

    public String getURCEmail() {
        return uRCEmail;
    }

    public void setURCEmail(String uRCEmail) {
        this.uRCEmail = uRCEmail;
    }

    public String getURCExperience() {
        return uRCExperience;
    }

    public void setURCExperience(String uRCExperience) {
        this.uRCExperience = uRCExperience;
    }

    public String getURCDescription() {
        return uRCDescription;
    }

    public void setURCDescription(String uRCDescription) {
        this.uRCDescription = uRCDescription;
    }

    public Boolean getURCStatus() {
        return uRCStatus;
    }

    public void setURCStatus(Boolean uRCStatus) {
        this.uRCStatus = uRCStatus;
    }

    public UserRole getUserRole() {
        return userRole;
    }

    public void setUserRole(UserRole userRole) {
        this.userRole = userRole;
    }

    public ShipType getShipType() {
        return shipType;
    }

    public void setShipType(ShipType shipType) {
        this.shipType = shipType;
    }

    public PaymentType getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(PaymentType paymentType) {
        this.paymentType = paymentType;
    }

    public List<PaymentDetails> getPaymentDetailsList() {
        return paymentDetailsList;
    }

    public void setPaymentDetailsList(List<PaymentDetails> paymentDetailsList) {
        this.paymentDetailsList = paymentDetailsList;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (urcid != null ? urcid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof UserRadioCab)) {
            return false;
        }
        UserRadioCab other = (UserRadioCab) object;
        if ((this.urcid == null && other.urcid != null) || (this.urcid != null && !this.urcid.equals(other.urcid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.myapp.c0910g.entity.UserRadioCab[urcid=" + urcid + "]";
    }

}
